#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
void Func(char str[])
{
	int len = strlen(str);
	char* left = str;
	char* right = str + len - 1;
	while (left < right)
	{
		char tmp = *left;
		*left = *right;
		*right = tmp;
		left++;
		right--;
	}
}
int main()
{
	char str[10000] = { 0 };
	gets(str);
	Func(str);
	printf("%s\n", str);
	return 0;
}